import {RouteRecordRaw} from "vue-router";
import Layout from "@/layouts/layout-index.vue";

// 异常页面模块路由配置
export default {
    path: '/error',
    name: 'Error',
    component: Layout,
    meta: {
        order: 6,
        title: '异常页面',
        icon: 'UserFilled',
        keepAlive: true
    },
    children: [
        {
            path: '/error/403',
            name: '403',
            component: () => import('@/views/error/403.vue'),
            meta: {
                title: "403",
            },
        },
        {
            path: '/error/404',
            name: 'staticRoutes.notFound',
            component: () => import('@/views/error/404.vue'),
            meta: {
                title: "404",
            },
        },
        {
            path: '/error/500',
            name: '500',
            component: () => import('@/views/error/500.vue'),
            meta: {
                title: "500",
            },
        },
    ],
} as RouteRecordRaw;
